package org.liang.clients;

import org.liang.clients.fallback.AuthClientFallBack;
import org.liang.domain.LoginUser;
import org.liang.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "gift-auth", fallbackFactory = AuthClientFallBack.class)
public interface AuthClient {
    @PutMapping("/loginUser")
    AjaxResult addOrUpdate(@RequestBody LoginUser loginUser);
}
